package com.steel.yfmall.cloud.assistant.oms.impl;

import com.steel.yfmall.cloud.assistant.oms.MasterOrderInvoiceApplyDetailService;
import com.steel.yfmall.cloud.assistant.oms.mapper.MasterOrderInvoiceApplyDetailMapper;
import com.steel.yfmall.cloud.assistant.po.oms.MasterOrderInvoiceApplyDetail;
import com.steel.yfmall.cloud.assistant.po.oms.MasterOrderInvoiceApplyDetailExample;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 龙飞
 * @version 1.0
 * @since 2021/01/08 星期五 14:43
 */

@Service
public class MasterOrderInvoiceApplyDetailServiceImpl implements MasterOrderInvoiceApplyDetailService {

    @Override
    public List<MasterOrderInvoiceApplyDetail> selectByInvoiceApplyOrderSn(String invoiceApplyOrderSn) {
        MasterOrderInvoiceApplyDetailExample example = new MasterOrderInvoiceApplyDetailExample();
        example.createCriteria().andInvoiceApplyOrderSnEqualTo(invoiceApplyOrderSn).andStatusEqualTo(1);
        return masterOrderInvoiceApplyDetailMapper.selectByExample(example);
    }

    @Resource
    private MasterOrderInvoiceApplyDetailMapper masterOrderInvoiceApplyDetailMapper;
}
